class P11000_39643 {

    private static long[] f;

	public static void main(String[] args) {
		fib();
    	int l = Integer.parseInt(readLn());
    	while (l > -1) {
    		process(l);
    		l = Integer.parseInt(readLn());
    	}
    }

    private static void process(int l) {
		System.out.println((f[l] - 1) + " " + (f[l+1] - 1));
	}

	private static void fib() {
		f = new long[100];
	    f[0] = 1;
	    f[1] = 2;
	    f[2] = 3;
	    for (int k = 3; k < 100; k++) {
	         f[k] = f[k-1]+ f[k-2];
	         System.out.println(f[k]);
	         System.out.println((int)f[k]);
       }
	}

	static String readLn() {
        String newLine = System.getProperty("line.separator");
        StringBuffer buffer = new StringBuffer();
        int car = -1;
        try {
            car = System.in.read();
            while ((car > 0) && (car != newLine.charAt(0))) {
                buffer.append((char)car);
                car = System.in.read();
            }
            if (car == newLine.charAt(0))
            System.in.skip(newLine.length() - 1);
        } catch (java.io.IOException e) { return (null);}
        if ((car < 0) && (buffer.length() == 0)) return (null);
        return (buffer.toString()).trim();
    }

}